import 'uno.css'
import uviewPlus from '@/uni_modules/uview-plus'
import App from './App'
import * as filters from './util/filters.js'
import http from '@/util/http.js'
import tool from '@/util/tool.js'

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  app.use(uviewPlus)
  app.config.globalProperties.timeCycle = filters.timeCycle
  app.config.globalProperties.handleZm = filters.handleZm
  app.config.globalProperties.$http = http
  app.config.globalProperties.$tool = tool
  return {
    app
  }
}
// #endif